#!/bin/bash
set -e
set -x
MYDIR="${0%/*}"
cd "$MYDIR/.."
source "recipes/common.sh"


# RECIPE START rsync
# depends: cross-pkg-config
# depends: acl
# depends: attr
# depends: openssl1.1
# depends: popt
# depends: xxHash
# depends: zlib

reset_mtime rsync rsync/configure.ac
rm -rf build/rsync
mkdir -p build/rsync
cd build/rsync
cat > config.cache <<-EOF
rsync_cv_HAVE_BROKEN_LARGEFILE=no
EOF
../../rsync/configure \
	${CONFIGURE_ARGS} \
	--cache-file=config.cache \
	--disable-lz4 \
	--disable-zstd \
	--disable-md2man \
	--enable-openssl \
	--enable-xxhash \
	${AUTOCRAP_KLUDGE}

cd ../..
make_build build/rsync

# RECIPE END rsync
